package rmi;

import java.net.MalformedURLException;
import java.rmi.NotBoundException;
import java.rmi.RemoteException;

public class Connector {
	
	private Client client;
	private Connect connect;
	
	private void connect(){
		try{
			client = new Client("localhost");
			connect = (Connect) client.getRemoteObject();
		}catch (MalformedURLException e){
			e.printStackTrace();
		}catch (RemoteException e) {
			e.printStackTrace();
		}catch (NotBoundException e) {
			e.printStackTrace();
		}
	}
public static void main(String[] args) {
	Connector connector = new Connector();
	connector.connect();
	Connect obj = connector.connect;
}	

}
